/*
Java source file
Copyright: Umschalt.com 2012
*/
package com.david.documentation.service.tag;

import com.david.documentation.domain.entities.tags.Tag;

import java.util.List;

public interface TagService {

	Tag findById(Long id);

	void save(Tag tag);

    Tag update(Tag tag);

    void remove(Tag tag);

    long size();

    List<Tag> findAll();

	boolean tagExists(String name);

	Tag findTagByName(String name);

	boolean checkforDublicate(String name);

	Number getNumberOfDokus(Long tagId);

	List<Tag> findTagsByName(String name);

}
